<?php

namespace AdminPanel\DashboardBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DashboardController extends Controller
{
    public function indexAction()
    {
        // Set controller names
        \AdminPanel\DashboardBundle\Utils\adminCustomClass::defineControllerName($this);
      
        $user = $this->get('security.context')->getToken()->getUser();
        $name = $user->getUsername();
        
        return $this->render('AdminPanelDashboardBundle:Dashboard:index.html.twig', array('name' => $name));
    }
}
